<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>模拟Vuex-基本结构</title>
</head>

<body>
  <div>
    <p>导入的Vuex是一个对象</p>
    <p>Vue.use进行注册,内部会调用install方法</p>
  </div>
  <script>
    let Vue = null
    class Stroe {}

    function install(Vue) {
      _Vue = Vue
    }

    export default {
      Store,
      install
    }
  </script>
</body>

</html>